<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js中的方法</title>
		<script>
			var str="大扎好，我是渣查灰";
			console.log(str.charCodeAt(2));
			console.log(str.charAt(2));
			var s2=String.fromCharCode(65,66,67,97,98,21016);
			console.log(s2);
			console.log(str.slice(-5,-2));
			console.log(str[1]);
			console.log(str.length);
		</script>
	</head>
	<body>
	</body>
</html>